// main.ts
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'
import App from './App.vue'
import router from './router'
import '@/access.ts'

const app = createApp(App)

// 1. 创建 Pinia 并把插件挂好
const pinia = createPinia().use(piniaPluginPersistedstate)

// 2. 用这个实例去 use
app.use(pinia)
app.use(router)
app.use(Antd)

app.mount('#app')
